<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="../struts_taglib.jsp"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>  
  <title>住宿费/新增</title>
  <%@ include file="../link_script.jsp" %>
  <script type="text/javascript">
    $(function() { 
      $("form").validity(function() {
        $("#heName").require();
        $("#dayNumber").require();
        $("#heExpenses").require();
      });
    });
  </script>
</head>
<body>
<form action="hotelExpense.do?method=addHotelExpense_Do" method="post" target="_self"> 
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <%@include file="../operate_button_add.jsp" %>
  <tr>
    <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="8" background="images/tab_12.gif">&nbsp;</td>
        <td><table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#b5d6e6">       
          <tr>
            <td width="100%" class="STYLE32">新增住宿费</td>
          </tr>
          <tr>
            <td class="STYLE1"><table width="100%" border="0" bordercolor="#b5d6e6" cellpadding="0" cellspacing="0">
              <tr>
                <td class="STYLE51" width="8%">&nbsp;&nbsp;旅游计划 : </td>
                <td class="STYLE11">
                <select id="tpID" name="tpID" onchange="javascript:change();">
                  <c:if test="${!empty tourismPlanList}">
                    <c:forEach items="${tourismPlanList}" var="tp">
                      <option value="${tp.tpID}">${tp.tpName}</option>
                  </c:forEach></c:if></select><br/></td>
              </tr>
              <tr>
                <td class="STYLE51" width="8%">&nbsp;&nbsp;预订日期 : </td>
                <td class="STYLE11"><input type="text" id="targetDate" name="targetDate" value="${date}" size="10" />
               &nbsp;&nbsp;<font color="red">*</font>&nbsp;&nbsp; 预订日期在结算时作为流水账的记账日期<br/></td>
              </tr>
              <tr>
                <td class="STYLE51" width="8%">&nbsp;&nbsp;酒店名称 : </td>
                <td class="STYLE11"><input type="text" id="heName" name="heName" size="50" title="酒店名称不能为空" /></td>
              </tr>
              <tr>
                <td class="STYLE51" width="8%">&nbsp;&nbsp;所在城市 : </td>
                <td class="STYLE11"><input type="text" id="heCity" name="heCity" value="北京" size="10" /></td>
              </tr>
              <tr>
                <td class="STYLE51" width="8%">&nbsp;&nbsp;入住日期 : </td>
                <td class="STYLE11"><input type="text" id="arriveDate" name="arriveDate" value="${date}" size="10" /></td>
              </tr>
              <tr>
                <td class="STYLE51" width="8%">&nbsp;&nbsp;离开日期 : </td>
                <td class="STYLE11"><input type="text" id="leaveDate" name="leaveDate" value="${date}" size="10" /></td>
              </tr>
              <tr>
                <td class="STYLE51" width="8%">&nbsp;&nbsp;天数 : </td>
                <td class="STYLE11"><input type="text" id="dayNumber" name="dayNumber" value="1" size="10" title="入住天数不能为空" />&nbsp;&nbsp;天</td>
              </tr>
              <tr>
                <td class="STYLE51" width="8%">&nbsp;&nbsp;价格: </td>
                <td class="STYLE11"><input type="text" id="heExpenses" name="heExpenses" value="0.00" size="10" title="价格不能为空" />&nbsp;&nbsp;￥</td>
              </tr>            
              <tr>
                <td class="STYLE51" width="8%">&nbsp;&nbsp;描述 : </td>
                <td class="STYLE11"><textarea id="heDesc" name="heDesc" cols="54" rows="4" style="font-family:宋体;font-size:12px"></textarea></td>
              </tr>
            </table></td>
          </tr>
          <tr>
            <td height="20" bgcolor="#FFFFFF" class="STYLE12"><input type="submit" value="提交"/><input type="reset" value="取消"/></td>
          </tr>
        </table></td>
        <td width="8" background="images/tab_15.gif">&nbsp;</td>
      </tr>
    </table></td>
  </tr>
  <%@include file="../no_page.jsp" %>
</table>
</form>
</body>
</html>
